package com.dhcc.core.modules.system.warpper;

import java.util.Map;

import com.dhcc.core.framework.base.warpper.BaseControllerWarpper;
import com.dhcc.core.framework.constant.state.PositionType;

/**
 * Created by Administrator on 2018/8/28.
 */
public class PositionWarpper extends BaseControllerWarpper {

    public PositionWarpper(Object obj) {
        super(obj);
    }

    @Override
    protected void warpTheMap(Map<String, Object> map) {
        if(map != null && map.size() > 0){
            Integer levels = (Integer)map.get("levels");
            String str = PositionType.valueOf(levels);
            map.put("levelName",str);
            map.put("parentId",levels!=null?levels+10000l:null);
        }

    }
}
